package com.wm.service;

import java.util.List;

import com.wm.bean.User;
import com.wm.bean.UserComment;
import com.wm.service.web.PageList;
import com.wm.service.web.Pages;

/**
 * @author yangbo
 *
 * 2012-12-26
 */
public interface UserCommentService {
	
	/**
	 * 保存UserComment对象
	 * 
	 * @param uc
	 * 			UserComment
	 * @return  UserComment
	 * 			UserComment
	 */
	public UserComment saveUserComment(UserComment uc);
	
	/**
	 * 更新UserComment对象
	 * 
	 * @param uc
	 * 			UserComment
	 * @return  UserComment
	 * 			UserComment
	 */
	public UserComment updateUserComment(UserComment uc);
	
	/**
	 * 根据ID删除UserComment对象
	 * 
	 * @param id
	 * 			long
	 */
	public void removeUserCommentById(long id);
	
	/**
	 * 根据ID获取UserComment对象
	 * 
	 * @param id
	 * 			long
	 * @return  UserComment
	 * 			UserComment
	 */
	public UserComment findUserCommentById(long id);
	
	
	/**
	 * 获取UserComment对象列表
	 * 
	 * @param orderby
	 *            String
	 * @param ascOrDesc
	 *            int
	 * @param pages
	 * 			  Pages
	 * @return PageList
	 * 			UserComment对象列表
	 */
	public PageList findUserComments(String orderby, int ascOrDesc,Pages pages);
	
	/**
	 * 根据userId获取UserComment对象列表
	 * @param userId
	 * @return
	 */
	public List findUserCommentByUserId(long userId);
	
}
